<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseReceiptBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseReceiptBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Pc Purchase Receipt"/>

	<ui:define name="header">
		Pc Purchase Receipt
	</ui:define>

	<ui:define name="subheader">
		View existing Pc Purchase Receipt
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptNo" value="Rcpt No:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptNo" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptNo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptHrEmpByRcptReceiptByEmpNo" value="Hr Emp By Rcpt Receipt By Emp No:"/>
			<h:link id="pcPurchaseReceiptBeanPcPurchaseReceiptHrEmpByRcptReceiptByEmpNo" outcome="/hrEmp/view" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.hrEmpByRcptReceiptByEmpNo}">
				<f:param name="id" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.hrEmpByRcptReceiptByEmpNo.empNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptPcPurchaseReceiptStatus" value="Pc Purchase Receipt Status:"/>
			<h:link id="pcPurchaseReceiptBeanPcPurchaseReceiptPcPurchaseReceiptStatus" outcome="/pcPurchaseReceiptStatus/view" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.pcPurchaseReceiptStatus}">
				<f:param name="id" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.pcPurchaseReceiptStatus.rcptStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptPcPurchaseOrder" value="Pc Purchase Order:"/>
			<h:link id="pcPurchaseReceiptBeanPcPurchaseReceiptPcPurchaseOrder" outcome="/pcPurchaseOrder/view" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.pcPurchaseOrder}">
				<f:param name="id" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.pcPurchaseOrder.poNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptHrEmpByRcptCreatedByEmpNo" value="Hr Emp By Rcpt Created By Emp No:"/>
			<h:link id="pcPurchaseReceiptBeanPcPurchaseReceiptHrEmpByRcptCreatedByEmpNo" outcome="/hrEmp/view" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.hrEmpByRcptCreatedByEmpNo}">
				<f:param name="id" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.hrEmpByRcptCreatedByEmpNo.empNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptCode" value="Rcpt Code:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptCode" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptDescr" value="Rcpt Descr:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptDescr" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptDescr}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptDate" value="Rcpt Date:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptDate" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptRefDelCode" value="Rcpt Ref Del Code:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptRefDelCode" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptRefDelCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptDelByName" value="Rcpt Del By Name:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptDelByName" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptDelByName}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptReceiptDtm" value="Rcpt Receipt Dtm:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptReceiptDtm" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptReceiptDtm}">
				<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptCreatedDtm" value="Rcpt Created Dtm:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptCreatedDtm" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptCreatedDtm}">
				<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptMemo" value="Rcpt Memo:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptMemo" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptMemo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptStatusIncVat" value="Rcpt Status Inc Vat:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptStatusIncVat" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptStatusIncVat}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptVatPercVal" value="Rcpt Vat Perc Val:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptVatPercVal" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptVatPercVal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptRcptVatVal" value="Rcpt Vat Val:"/>
			<h:outputText id="pcPurchaseReceiptBeanPcPurchaseReceiptRcptVatVal" value="#{pcPurchaseReceiptBean.pcPurchaseReceipt.rcptVatVal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseReceiptBeanPcPurchaseReceiptPcPurchaseReceiptItems" value="Pc Purchase Receipt Items:"/>
			<h:dataTable id="pcPurchaseReceiptBeanPcPurchaseReceiptPcPurchaseReceiptItems" styleClass="data-table" value="#{forgeview:asList(pcPurchaseReceiptBean.pcPurchaseReceipt.pcPurchaseReceiptItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptQty" value="#{_item.rcptQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptPpu" value="#{_item.rcptPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptVatPercVal" value="#{_item.rcptVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptVatVal" value="#{_item.rcptVatVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Total Price Exc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptTotalPriceExcVat" value="#{_item.rcptTotalPriceExcVat}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>